import {request} from "../request"
//获取楼栋表格
export  function getBuildingList(page,pageSize,datas){
  return request({
      url:'/api/building/list'+"/"+ page +"/"+ pageSize,
      data:JSON.stringify(datas),
      method:'POST',
    }
  )
}
//获取学校列表
export function getSchoolList(){
  return  request({
    url:'/api/campus/school_name_campus_name',
    method:'GET'
  })
}
//获取校区列表

//添加楼栋
export function addBuilding(datas){
  return request({
    url:'/api/building/adjuration',
    method:'POST',
    data:JSON.stringify(datas)
  })
}
//批量添加楼栋
export function addBuilding_batchadd(datas){
  return request({
    url:'/api/building/batch_add',
    method:'POST',
    data:JSON.stringify(datas)
  })
}
//编辑楼栋
export function editBuilding(buildingID,datas){
  return request({
    url:'/api/building/edit/buildingId' + buildingID,
    method:'PUT',
    data:JSON.stringify(datas)
  })
}
//删除楼栋
export function deleteBuilding(buildingID){
  return request({
    url:'/api/building/delete',
    method:'DELETE',
    data:buildingID
  })
}
